]> dgit.raspbian.org Git - gnome-shell.git/commit
background: properly disconnect background signals
authorRay Strode <rstrode@redhat.com>
Tue, 19 Mar 2013 19:26:05 +0000 (15:26 -0400)
committerRay Strode <rstrode@redhat.com>
Tue, 26 Mar 2013 21:02:05 +0000 (17:02 -0400)
commitf920fd8b6fe03354e36fa2f91f5175740f20f3ac
tree50cde73290d9abacec552bbec1d133714a08f910
parentb9da6d9ef628bdfea3dc87f5e3f46ae59e880c45
background: properly disconnect background signals

BackgroundManager connects to the changed signal in
the backgrounds it manages.

The signal ids for the changed signal connectionss are stored
as state on the background manager object.

If the background being managed changes while the manager
is still loading the old background, then the signal id
variable can get out of sync with the background object being
managed.

This commit ties the signal id to the background objects themselves,
so there is no opportunity for them to desynchronize.

https://bugzilla.gnome.org/show_bug.cgi?id=696157
js/ui/background.js